package cn.zero.letaomallspringboot.mapper;

import cn.zero.letaomallspringboot.entity.RefundRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RefundRecordMapper {

    int insertSelective(RefundRecord record);

    RefundRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RefundRecord record);

    int deleteByPrimaryKey(Integer id);

    int batchDeleteByIds(List<Integer> ids);

    List<RefundRecord> selectByPage(@Param("offset") int offset, @Param("size") int size,
                                    @Param("refundNumber") String refundNumber, @Param("userId") Integer userId,
                                    @Param("orderId") Integer orderId, @Param("refundReason") String refundReason,
                                    @Param("processStatus") String processStatus);

    long selectCount(@Param("refundNumber") String refundNumber, @Param("userId") Integer userId,
                     @Param("orderId") Integer orderId, @Param("refundReason") String refundReason,
                     @Param("processStatus") String processStatus);
}